<?php

/* 
 * Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 * All rights reserved.
 */

class Fete_Util_Text
{
    /**
     * Get excerpt from source string
     * @param string $source
     * @param integer $maxChars
     * @return string
     */
    static public function getExcerpt($source, $maxChars)
    {
        return Fete_String::getExcerpt($source, $maxChars);
    }
    
    /**
     * Get string of n characters from right side of the source string
     * @param string $string
     * @param integer $length
     * @return string
     * @deprecated
     */
    static public function right($string, $length)
    {
        return Fete_String::right($string, $length);
    }

    /**
     * Gets xx characters from left of string
     * @param string $string
     * @param integer $length
     * @return string
     * @deprecated
     */
    static public function left($string, $length)
    {
        return Fete_String::left($string, $length);
    }

    /**
     * Gets string between 2 strings from source string
     * @param string $firstString
     * @param string $secondString
     * @param string $source
     * @return string
     * @@deprecated
     */
    static public function between($firstString, $secondString, $source)
    {
        return Fete_String::between($firstString, $secondString, $source);
    }

    /**
     *
     * @param integer $outputLength
     * @param string $prefix
     * @param string $source
     * @return string
     * @deprecated
     */
    static public function genRandomString($outputLength = 0, $prefix = '', $source = '')
    {
        return Fete_String::genRandom($outputLength, $prefix, $source);
    }

    /**
     * Removes Vietnamese accent marks in Unicode string
     * @param string $str
     * @return string
     * @deprecated
     */
    static public function removeVnAccents($str)
    {
        return Fete_String::removeVnAccents($str);
    }
}